#pragma once

#include <iostream>
#include <string>
#include "LinkedList.h"

//Used in toLowerCase
#include <cctype>

using namespace std;

class SortedLinkedList : public LinkedList
{
public:
	SortedLinkedList();
	~SortedLinkedList();

	/*
	Pre: None
	Post: A node has been created in the linked list that contains the word, and is in order alphebetically.
	Purpose: To insert a node with an arbitrary word into the linked list in alphabetical order. 
	*/
	void SortedLinkedList::addWord( const string& theWord );
};

/*
Pre: None
Post: A copy of the input string has been converted to lower case.
Purpose: To return a lower case copy of an input string.
*/
string toLowerCase(const string &str);